<?php /* Smarty version Smarty-3.1.12, created on 2012-11-29 03:17:53
         compiled from "templates/default/login.tpl" */ ?>
<?php /*%%SmartyHeaderCode:212549115250b1723a085a09-20587204%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ae693f11a6d8fe90ba191b7cf464083f57d77a92' => 
    array (
      0 => 'templates/default/login.tpl',
      1 => 1354151872,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '212549115250b1723a085a09-20587204',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_50b1723a0d5664_06878344',
  'variables' => 
  array (
    'sonuc' => 0,
    'tema' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50b1723a0d5664_06878344')) {function content_50b1723a0d5664_06878344($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

                        <!-- Sol-->
            <?php echo $_smarty_tpl->getSubTemplate ("menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


            <!-- SaÃ°-->
            <div id="sag">
    <script type="text/javascript">
        $(document).ready(function (){
            $(".kullanici_adi").blur(function(){
                var kullaniciadi = $(this).val();
                if(kullaniciadi != ''){
                    $.ajax({
                        url:"islem.php?k_kontrol=" + $(this).val(),
                        type:"POST",
                        success:function(c){
                            $("#kullanici_k").html(c);
                        }

                    });
                }
            });
            
            $("#sifre2").blur(function(){
                var sifre1 = $("#sifre1").val();
                var sifre2 = $("#sifre2").val();
                if(sifre1 != sifre2){
                    $("#sifre_k").html(" ");
                    $("#sifre_k").html("<h style='color:RED'>Şifreler Uyuşmuyor.</h>");
                }
            });
            
            $("#email2").blur(function(){
                var sifre1 = $("#email1").val();
                var sifre2 = $("#email2").val();
                if(sifre1 != sifre2){
                    $("#email_k").html(" ");
                    $("#email_k").html("<h style='color:RED'>Email Adresler Uyuşmuyor.</h>");
                }
            });
            
            
        });

    </script>
                    <?php if ($_GET['do']=="login"){?>
                    <div class="register_title"><strong>Giriş</strong></div>
                    <div class="orta_orta">
                        <div class="orta_yazi">
                        <?php echo $_smarty_tpl->tpl_vars['sonuc']->value;?>

                        </div>
                    </div>
                    <div class="orta_alt"></div>
                    
                    <?php }elseif($_GET['do']=="register"){?>
                    <div class="register">
                        <div class="register_title"><strong>Üye Ol</strong></div>
                        <div class="register_body">
                            <form enctype="multipart/form-data" action="login.php?do=register2" method="post">
                                İsim Soyisim:<br /><input type="text" name="isim" /><br />
                                Profil resmi:<br /><input name="image" type="file" /><br />
                                Kullanıcı adı:<br /><input type="text" class="kullanici_adi" name="kullanici" /> <label id="kullanici_k"></label><br />
                                Şifre:<br /><input type="password" id="sifre1" name="sifre" /><br />
                                Şifre tekrar:<br /><input type="password" id="sifre2" name="sifre_tekrar" /> <label id="sifre_k"></label><br />
                                E-Mail:<br /><input type="text" id="email1" name="email" /><br />
                                E-Mail tekrar:<br /><input type="text" id="email2" name="email_tekrar" /> <label id="email_k"></label><br />
                                Cinsiyet:<br /><select name="cinsiyet">
                                    <option>Cinsiyet</option>
                                    <option value="Bay">Bay</option>
                                    <option value="Bayan">Bayan</option>
                                </select><br />
                                Doğum Tarihi:<br />
                                <select name="gun">
                                    <option value="Gün">Gün</option>
                                    <option value="01">1</option>
                                    <option value="02">2</option>
                                    <option value="03">3</option>
                                    <option value="04">4</option>
                                    <option value="05">5</option>
                                    <option value="06">6</option>
                                    <option value="07">7</option>
                                    <option value="08">8</option>
                                    <option value="09">9</option>
                                    <option value="10">10</option>
                                    <option value="11">11</option>
                                    <option value="12">12</option>
                                    <option value="13">13</option>
                                    <option value="14">14</option>
                                    <option value="15">15</option>
                                    <option value="16">16</option>
                                    <option value="17">17</option>
                                    <option value="18">18</option>
                                    <option value="19">19</option>
                                    <option value="20">20</option>
                                    <option value="21">21</option>
                                    <option value="22">22</option>
                                    <option value="23">23</option>
                                    <option value="24">24</option>
                                    <option value="25">25</option>
                                    <option value="26">26</option>
                                    <option value="27">27</option>
                                    <option value="28">28</option>
                                    <option value="29">29</option>
                                    <option value="30">30</option>
                                    <option value="31">31</option>
                                </select>
                                <select name="ay">
                                    <option value="Ay">Ay</option>
                                    <option value="01">Ocak</option>
                                    <option value="02">Şubat</option>
                                    <option value="03">Mart</option>
                                    <option value="04">Nisan</option>
                                    <option value="05">Mayıs</option>
                                    <option value="06">Haziran</option>
                                    <option value="07">Temmuz</option>
                                    <option value="08">Ağustos</option>
                                    <option value="09">Eylül</option>
                                    <option value="10">Ekim</option>
                                    <option value="11">Kasım</option>
                                    <option value="12">Aralık</option>
                                </select>
                                <select name="yil">
                                    <option value="">Yıl</option><option value="2012">2012</option><option value="2011">2011</option><option value="2010">2010</option><option value="2009">2009</option><option value="2008">2008</option><option value="2007">2007</option><option value="2006">2006</option><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option><option value="1944">1944</option><option value="1943">1943</option><option value="1942">1942</option><option value="1941">1941</option><option value="1940">1940</option>
                                </select><br />
                                <input type="image" src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/kayit_ol.png" name="kayit_ol" />
                            </form>
                        </div>
                        <div class="register_foot"></div>
                    </div>

                    <?php }elseif($_GET['do']=="logout"){?>
                    <div class="register_title"><strong>Çıkış</strong></div>
                    <div class="orta_orta">
                        <div class="orta_yazi">
                            Çıkış yaptınız <?php echo $_SESSION['ad'];?>
. Anasayfaya yönlendirileceksiniz, lütfen bekleyin.
                        </div>
                    </div>
                    <div class="orta_alt"></div>
                    
                    <?php }elseif($_GET['do']=="register2"){?>
                    <div class="register_title"><strong>Kayıt ol</strong></div>
                    <div class="orta_orta">
                        <div class="orta_yazi">
                            <?php echo $_smarty_tpl->tpl_vars['sonuc']->value;?>

                        </div>
                    </div>
                    <div class="orta_alt"></div>
                            <?php }?>
                </div>
                <div class="both"></div>
            </div>
            <div class="both"></div>
	</div>
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</div>

</div>
</body>
</html>
<?php }} ?>